#ifndef SCANTHREAD_H
#define SCANTHREAD_H

#include <QThread>

class ScanThread : public QThread
{
    Q_OBJECT
public:
    explicit ScanThread(const QString &dir, QObject *parent = 0);

    void run() Q_DECL_OVERRIDE { scanDir(m_dir); }

signals:
    void fileScanned(const QString &file);
    void filesScanned(const QStringList &files);

public slots:

private:
    void scanDir(const QString &dir);

    QString m_dir;

};

#endif // SCANTHREAD_H
